package model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;
//对应表pdd_product_sku
public class Product implements Serializable {
    private String id;
    private String productIdd;
    private String productName;
    private BigDecimal price;
    private BigDecimal promotionPrice;
    private int stock;
    private int sold;
    private Shop shop;
    private Timestamp lastModifyTime;
    private Timestamp createTime;
    private List<Order> orders;
    public Product() {
    }

    public Product(String id, String productIdd, String productName, BigDecimal price, BigDecimal promotionPrice, int stock, int sold, Shop shop, Timestamp lastModifyTime, Timestamp createTime, List<Order> orders) {
        this.id = id;
        this.productIdd = productIdd;
        this.productName = productName;
        this.price = price;
        this.promotionPrice = promotionPrice;
        this.stock = stock;
        this.sold = sold;
        this.shop = shop;
        this.lastModifyTime = lastModifyTime;
        this.createTime = createTime;
        this.orders = orders;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProductIdd() {
        return productIdd;
    }

    public void setProductIdd(String productIdd) {
        this.productIdd = productIdd;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPromotionPrice() {
        return promotionPrice;
    }

    public void setPromotionPrice(BigDecimal promotionPrice) {
        this.promotionPrice = promotionPrice;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getSold() {
        return sold;
    }

    public void setSold(int sold) {
        this.sold = sold;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public Timestamp getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Timestamp lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id='" + id + '\'' +
                ", productIdd='" + productIdd + '\'' +
                ", productName='" + productName + '\'' +
                ", price=" + price +
                ", promotionPrice=" + promotionPrice +
                ", stock=" + stock +
                ", sold=" + sold +
                ", shop=" + shop +
                ", lastModifyTime=" + lastModifyTime +
                ", createTime=" + createTime +
                ", orders=" + orders +
                '}';
    }
}
